package com.suyuan.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 猪肉商品
 */
public class ProductInfo implements Serializable{
    /**
     * 产品编号
     */
    private Integer productid;

    /**
     * 追溯码
     */
    private String tracecode;

    /**
     * 生猪编号
     */
    private Integer animalid;

    /**
     *公司编号
     */
    private Integer compid;

    /**
     * 产品类型编号
     */
    private Integer typeid;

    /**
     * 生产时间
     */
    private Date processtime;

    /**
     * 生产人员编号
     */
    private Integer processercode;

    /**
     * 检验结果类型
     */
    private Integer inspectresultcode;

    /**
     * 检验结果
     */
    private String inspectresult;

    /**
     * 检验时间
     */
    private Date inspecttime;

    /**
     * 检验台编号
     */
    private String inspectercode;

    /**
     * 销售商家编号
     */
    private Integer salerid;

    /**
     * 商家名称
     */
    private String salername;

    /**
     * 销售终端编号
     */
    private Integer balanceid;

    /**
     * 销售终端编码
     */
    private String balancecode;

    /**
     * 商品单价
     */
    private Float procprice;

    /**
     * 产品单位
     */
    private String procunit;

    /**
     * 产品计价
     */
    private Float proccount;

    /**
     * 合计
     */
    private Float procamount;

    /**
     * 折扣
     */
    private Float procdiscount;

    /**
     * 出售价格
     */
    private Float sellprice;

    /**
     * 出售日期
     */
    private Date selledtime;

    /**
     * 产品名称
     */
    private String productname;

    /**
     * 图片路径
     */
    private String imagesrc;

    /**
     * 产品描述
     */
    private String prodesc;

    public Integer getProductid() {
        return productid;
    }

    public void setProductid(Integer productid) {
        this.productid = productid;
    }

    public String getTracecode() {
        return tracecode;
    }

    public void setTracecode(String tracecode) {
        this.tracecode = tracecode == null ? null : tracecode.trim();
    }

    public Integer getAnimalid() {
        return animalid;
    }

    public void setAnimalid(Integer animalid) {
        this.animalid = animalid;
    }

    public Integer getCompid() {
        return compid;
    }

    public void setCompid(Integer compid) {
        this.compid = compid;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public Date getProcesstime() {
        return processtime;
    }

    public void setProcesstime(Date processtime) {
        this.processtime = processtime;
    }

    public Integer getProcessercode() {
        return processercode;
    }

    public void setProcessercode(Integer processercode) {
        this.processercode = processercode;
    }

    public Integer getInspectresultcode() {
        return inspectresultcode;
    }

    public void setInspectresultcode(Integer inspectresultcode) {
        this.inspectresultcode = inspectresultcode;
    }

    public String getInspectresult() {
        return inspectresult;
    }

    public void setInspectresult(String inspectresult) {
        this.inspectresult = inspectresult == null ? null : inspectresult.trim();
    }

    public Date getInspecttime() {
        return inspecttime;
    }

    public void setInspecttime(Date inspecttime) {
        this.inspecttime = inspecttime;
    }

    public String getInspectercode() {
        return inspectercode;
    }

    public void setInspectercode(String inspectercode) {
        this.inspectercode = inspectercode == null ? null : inspectercode.trim();
    }

    public Integer getSalerid() {
        return salerid;
    }

    public void setSalerid(Integer salerid) {
        this.salerid = salerid;
    }

    public String getSalername() {
        return salername;
    }

    public void setSalername(String salername) {
        this.salername = salername == null ? null : salername.trim();
    }

    public Integer getBalanceid() {
        return balanceid;
    }

    public void setBalanceid(Integer balanceid) {
        this.balanceid = balanceid;
    }

    public String getBalancecode() {
        return balancecode;
    }

    public void setBalancecode(String balancecode) {
        this.balancecode = balancecode == null ? null : balancecode.trim();
    }

    public Float getProcprice() {
        return procprice;
    }

    public void setProcprice(Float procprice) {
        this.procprice = procprice;
    }

    public String getProcunit() {
        return procunit;
    }

    public void setProcunit(String procunit) {
        this.procunit = procunit == null ? null : procunit.trim();
    }

    public Float getProccount() {
        return proccount;
    }

    public void setProccount(Float proccount) {
        this.proccount = proccount;
    }

    public Float getProcamount() {
        return procamount;
    }

    public void setProcamount(Float procamount) {
        this.procamount = procamount;
    }

    public Float getProcdiscount() {
        return procdiscount;
    }

    public void setProcdiscount(Float procdiscount) {
        this.procdiscount = procdiscount;
    }

    public Float getSellprice() {
        return sellprice;
    }

    public void setSellprice(Float sellprice) {
        this.sellprice = sellprice;
    }

    public Date getSelledtime() {
        return selledtime;
    }

    public void setSelledtime(Date selledtime) {
        this.selledtime = selledtime;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname == null ? null : productname.trim();
    }

    public String getImagesrc() {
        return imagesrc;
    }

    public void setImagesrc(String imagesrc) {
        this.imagesrc = imagesrc == null ? null : imagesrc.trim();
    }

    public String getProdesc() {
        return prodesc;
    }

    public void setProdesc(String prodesc) {
        this.prodesc = prodesc == null ? null : prodesc.trim();
    }

    public ProductInfo(){}

    @Override
    public String toString() {
        return "ProductInfo{" +
                "productid=" + productid +
                ", tracecode='" + tracecode + '\'' +
                ", animalid=" + animalid +
                ", compid=" + compid +
                ", typeid=" + typeid +
                ", processtime=" + processtime +
                ", processercode=" + processercode +
                ", inspectresultcode=" + inspectresultcode +
                ", inspectresult='" + inspectresult + '\'' +
                ", inspecttime=" + inspecttime +
                ", inspectercode='" + inspectercode + '\'' +
                ", salerid=" + salerid +
                ", salername='" + salername + '\'' +
                ", balanceid=" + balanceid +
                ", balancecode='" + balancecode + '\'' +
                ", procprice=" + procprice +
                ", procunit='" + procunit + '\'' +
                ", proccount=" + proccount +
                ", procamount=" + procamount +
                ", procdiscount=" + procdiscount +
                ", sellprice=" + sellprice +
                ", selledtime=" + selledtime +
                ", productname='" + productname + '\'' +
                ", imagesrc='" + imagesrc + '\'' +
                ", prodesc='" + prodesc + '\'' +
                '}';
    }
}